//
//  TKIMToolBar.h
//  TKIM
//
//  Created by liupm on 15/7/27.
//  Copyright (c) 2015年 liupm. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "TKIMAudioMessage.h"
#import "TKIMRecordView.h"
//#import "TKIMColorHelper.h"
#import "TKIMEmotionView.h"
//#import "TKIMImageHelper.h"
#import "TKIMToolView.h"
#import "TKIMMenuBar.h"


typedef NS_ENUM(NSInteger,TKIMToolBarType)
{
    TKIMToolBarNormalType,//变通工具栏
    TKIMToolBarOfiicalType,//公众号工具栏
    TKIMToolBarLonelyType//东北证券单独的输入框的菜单
};

@interface TKIMToolBarTextView:UITextView
@end


@protocol TKIMToolBarDelegate <NSObject>
/**
 *  @Author lpm, 15-07-27 16:07:22
 *
 *  @brief  点击发送按钮发送消息
 *
 *  @param message 
 */
-(void)sendTxt:(NSString *)message;


/**
 *  @Author lpm, 15-07-27 16:07:22
 *
 *  @brief  回拨按钮被点击
 *
 *  @param message
 */
-(void)replyBtnClick:(UIButton *)btn;

/**
 *  @Author lpm, 15-07-28 09:07:53
 *
 *  @brief  键盘显示
 *
 *  @param offset 偏移量
 */
-(void)keyBoardShow:(CGFloat)offset duration:(CGFloat)duration;


/**
 *  @Author lpm, 15-07-28 09:07:12
 *
 *  @brief  键盘消失
 *
 *  @param offset 偏移量
 */
-(void)keyBoardHide:(CGFloat)offset duration:(CGFloat)duration;

@end



@interface TKIMToolBar : UIView

-(instancetype)initWithFrame:(CGRect)frame toolBarType:(TKIMToolBarType)type;

@property(nonatomic,weak) id<TKIMToolBarDelegate> delegate;
@property(nonatomic,strong) TKIMToolBarTextView *input;//输入框

@property(nonatomic,assign) TKIMToolBarType tooBarType;//工具栏类型
@property (nonatomic, assign) BOOL isNeedVoice;
@property (nonatomic, assign) BOOL isNeedPhoto;
@property (nonatomic, assign) BOOL isNeedQuick;//是否需要快捷回复


/**
 *  @Author lpm, 15-07-29 16:07:38
 *
 *  @brief  收起键盘
 */
-(void)resignInputFirstResponder;

@property (nonatomic,strong)NSArray * menusArray;
-(void)typeAheadText:(NSString*)text;
@end

